function [outputArg1,outputArg2] = draw_process_result(track_org,track_deleted,track_spline,mean_pz)
%UNTITLED2 此处显示有关此函数的摘要
%   绘制两轨迹的轨迹段夹角，主要是显示异常点识别的效果。
%mean_pz  各阶段的平均偏转角度

my.degrees_org = calculate_track_degree(table2array(track_org(:,{'Lon','Lat'})));
my.degrees_deleted = calculate_track_degree(table2array(track_deleted(:,{'Lon','Lat'})));
my.degrees_spline = calculate_track_degree(table2array(track_spline(:,{'Lon','Lat'})));


figure
% subplot(2,1,1);
plot(my.degrees_org,'ko-');
% ylim([0,180]);
xlabel('偏转角序号');
ylabel('偏转角/(°)');
legend('偏转角度值');
% subplot(2,1,2);
figure
plot(my.degrees_deleted,'ko-');
% ylim([0,180]);
xlabel('偏转角序号');
ylabel('偏转角/(°)');
legend('偏转角度值');
% subplot(3,1,3);
% plot(my.degrees_spline,'o-');

%偏转角标准差对比，标准差是计算的整个轨迹的
my.std_org=std(my.degrees_org);
my.std_deleted = std(my.degrees_deleted);
my.std_spline=std(my.degrees_spline);

%绘制各阶段的平均偏转角，这个是计算的每个异常轨迹段的
mean_pz(mean_pz(:,1)==-1,:)=[];%剔除默认值
my.mean_pz=mean_pz;

my.mean_org = mean(my.degrees_org);
my.mean_deleted = mean(my.degrees_deleted);
my.mean_spline=mean(my.degrees_spline);



figure
% sz = 100;
% scatter(1:size(mean_pz,1),mean_pz(:,1),sz,'o');
% hold on
% scatter(1:size(mean_pz,1),mean_pz(:,2),sz,'*');
% hold on
% scatter(1:size(mean_pz,1),mean_pz(:,3),sz,'^');


for i=1:size(mean_pz,1)
    plot(i, mean_pz(i,1), 'k-o', i, mean_pz(i,2), 'k-s', i, mean_pz(i,3), 'k-^');
    % plot( i, mean_pz(i,2), 'r-s', i, mean_pz(i,3), 'b-^');
    hold on
    if mod(i,2)==1
        xline(i, 'k--', 'LineWidth', 0.5);
    else
        xline(i, 'k-', 'LineWidth', 0.5);
    end
    % grid on
end

legend('原始轨迹','异常点剔除后的轨迹','插值后的轨迹');
xlabel('异常轨迹段序号');
ylabel('平均偏转角/(°)');


end